package lormi.meipin.dto;


import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 修改手机号-接口参数对象
 * @author ThreeFeng
 */
public class ChangePhoneDto {

	@NotNull(message = "phone ")
	@Pattern(regexp = "^1[0-9]{10}",message="120007")
	private String phone;
	
	@NotNull(message = "100033")
	@Pattern(regexp = "^1[0-9]{5}",message = "120004")
	private String code;

	private Integer userid;

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getCodeForInt(){
		return Integer.valueOf(code);
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	
	
}
